var e = getApp(), t = /\/product\/line\/(\d+)/, r = /\/product\/detail\/(\d+)/;

Component({
    properties: {
        info: {
            type: Object,
            value: []
        },
        title: {
            type: String,
            value: ""
        }
    },
    data: {
        server: e.server,
        serverUrl: e.serverUrl
    },
    methods: {
        navTo: function(e) {
            var a = e.currentTarget.dataset.link;
            if (a && "#" !== a) if (r.test(a)) {
                var o = a.match(r)[1];
                wx.navigateTo({
                    url: "/pages/products/detail/detail?id=" + o
                }), console.log("跳转到产品", o);
            } else if (t.test(a)) {
                var l = a.match(t)[1];
                wx.navigateTo({
                    url: "/pages/products/products?tid=" + l
                }), console.log("跳转到系列", l);
            }
        },
        play: function(e) {
            var t = e.currentTarget.dataset.link;
            wx.navigateTo({
                url: "/pages/video/play/play?url=" + encodeURIComponent(t)
            });
        }
    }
});